package com.yyx.service;

import com.yyx.pojo.entity.Package;
import com.yyx.pojo.request.package_.PackageUpdateRequest;
import org.springframework.data.domain.Page;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;

public interface PackageService {
    Page<Package> list(int page, int size);
    Package getById(Long id);
    Page<Package> searchByFileName(String query);
    Package save(MultipartFile file, String version, String officialUrl) throws IOException;
    Package update(PackageUpdateRequest request);
    void delete(Long id);
}